package com.gcxy.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "用户登录传入参数")
public class LoginUserDTO {


	@ApiModelProperty(value = "账号")
	@NotBlank(message = "账号不能为空")
	@Size(max = 20,message = "账号长度不能超过20")
	private String userId;

	@ApiModelProperty(value = "密码")
	@NotBlank(message = "密码不能为空")
	@Size(max = 20,message = "密码长度不能超过20")
	private String password;


}
